package tjs.study.notes.dotest.reactor;

/**
 * Created by Nicky.Tang on 2023/2/20 下午3:41
 *
 * @since 02.12.10
 */
public class UserReactor {
    private String name;
    public UserReactor (String name){
        this.name = String.format("线程名：%s@%s, 创建了 %s",
                Thread.currentThread().getId(),Thread.currentThread().getName(),name);
    }
    
    public void print(){
        System.out.println( String.format("线程名：%s@%s, 打印 %s",
                Thread.currentThread().getId(),Thread.currentThread().getName(),name));
    }
    
    
}
